home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 1998 October / Macworld (1998-10).dmg / Shareware World / Info / For Developers / MacZoop 1.8.4 / More Classes / File Classes / FileMgrUtils.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-07-22  |  1005 b   |  56 lines  |  [TEXT/CWIE]

  1. /*************************************************************************************************
  2. *
  3. *
  4. *            MacZoop - "the framework for the rest of us"         
  5. *
  6. *
  7. *
  8. *            FileMgrUtils.h        -- file utilities
  9. *
  10. *
  11. *
  12. *
  13. *
  14. *            © 1998, Graham Cox
  15. *
  16. *
  17. *
  18. *
  19. *************************************************************************************************/
  20.  
  21.  
  22. #pragma once
  23.  
  24.  
  25. #ifndef __FILEMGRUTILS__
  26. #define __FILEMGRUTILS__
  27.  
  28. #ifdef __cplusplus
  29. extern "C" {
  30. #endif
  31.  
  32. pascal    OSErr    GetDirectoryID( short vRefNum,
  33.                                 long dirID,
  34.                                 StringPtr name,
  35.                                 long *theDirID,
  36.                                 Boolean *isDirectory );
  37.  
  38. pascal    OSErr    FSpGetDirectoryID( const FSSpec *spec,
  39.                                    long *theDirID,
  40.                                    Boolean *isDirectory );
  41.  
  42. short        GetSFCurVol();
  43. long        GetSFCurDir();
  44. Boolean        GetFullPathname( FSSpec* aSpec, Str255 pathname );
  45. OSErr         MakeCanonFSSpec ( FSSpec *spec );
  46. Boolean     SameFile ( FSSpec *spec1, FSSpec *spec2 );
  47. void        pStrInsert( StringPtr dest,StringPtr src );
  48.  
  49.  
  50.  
  51. #ifdef __cplusplus
  52. }
  53. #endif
  54.  
  55.  
  56. #endif